package sunstar.com.xq.fragment

import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import sunstar.com.xq.R
import sunstar.com.xq.adapter.GroupRankAdapter
import sunstar.com.xq.util.ViewInitUtil

/**
 * Created by Sun.Star on 2017/6/17.
 */
class GeFragment : LazyFragment() {
    override fun initData() {

    }

    override fun initViewid(): Int = R.layout.ge_fragment_layout
    val viewInit by lazy {
        ViewInitUtil(thisView)
    }
    val rankRec by lazy {
        viewInit.getView<RecyclerView>(R.id.ge_ramk_rec)
    }
    override fun initViewCompelte() {
        rankRec.adapter = GroupRankAdapter(activity)
        var manager = LinearLayoutManager(activity)
        manager.orientation = LinearLayoutManager.HORIZONTAL
        rankRec.layoutManager = manager
    }

}